fix: APIAPEX-2747 add follow flag to instance logs#77
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the vcr instance log command to support a new --follow/-f flag so users can choose between fetching a fixed set of historical logs (default) or continuously streaming new log entries.
Changes:
- Add
--follow/-fflag and update command help text/examples to reflect default “fetch and exit” behavior. - Update
runLoglogic to perform a one-shot fetch when--followis not set. - Update unit tests and generated docs for the new flag and behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
vcr/instance/log/log.go |
Adds Follow option/flag and switches default behavior to fetch once unless --follow is provided. |
vcr/instance/log/log_test.go |
Extends tests for the new default behavior and datastore calls; adjusts assertions. |
docs/vcr_instance_log.md |
Updates command docs, examples, and options to include --follow. |
gorkarevilla
added a commit
that referenced
this pull request
May 11, 2026
* fix: APIAPEX-2747 add follow flag to instance logs * test: add tests
gorkarevilla
added a commit
that referenced
this pull request
May 13, 2026
* feat: add secret list command * feat(debug): add prune-sessions command (#76) * chore(main): release 2.4.0 (#78) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: APIAPEX-2747 add follow flag to instance logs (#77) * fix: APIAPEX-2747 add follow flag to instance logs * test: add tests * chore: add skills and agents.md * fix(secrets): fix example output, test exec error assertion, and nil-safe traceID * fix(secrets): extract n/a trace ID fallback into constant to satisfy goconst --------- Co-authored-by: Simon Chan <85551662+sichan-vonage@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default instance logs always follow the logs. This is a problem for AIs and automated tools, because to stop the logs you need to Interrupt the command. This changes the default behaviour, now it will print the last logs and you can follow by using the
-for--followflag.Before:
After: